package com.alibaba.citrus.ots.sales.plan.facade.service.statistics.stat.model;

import com.alibaba.citrus.ots.sales.plan.sdo.SalesPlanSDO;
import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * @author luyi
 * @date 2021/12/2 10:36 上午
 */
@Getter
@Setter
public class SalesPlanStatRequest {

    private SalesPlanSDO salesPlan;

    private String year;

    private String month;


    public SalesPlanStatRequest(SalesPlanSDO salesPlan, String year, String month) {
        this.salesPlan = salesPlan;
        this.year = year;
        this.month = month;
    }

    public String getPlanId(){
        if (salesPlan != null){
            return Objects.toString(salesPlan.getId(),null);
        }
        return null;
    }

}
